<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../src/array/unique.js"></script>
</head>
<body>
  <script>
    // 去重第一种方法
    // const arr = [1,4,3,4,5,2,4,5];
    // console.log(unique(arr));
    
    // 去重第二种方法
    // const arr = [1,4,3,4,5,2,4,5,6];
    // console.log(unique2(arr));

    // 去重第三种方法
    const arr = [1,4,3,4,5,2,4,5,7];
    console.log(unique3(arr));
  </script>
</body>
</html>